{% extends "admin/change_list.html" %}
{% load i18n admin_urls static admin_list %}

{% block object-tools-items %}
    {{ block.super }}
    {% if feature_switches_manager_url %}
    <li>
        <a href="{{ feature_switches_manager_url }}" class="addlink" target="_blank">
            <i class="fas fa-toggle-on"></i> 功能开关管理器
        </a>
    </li>
    {% endif %}
{% endblock %}

{% block extrahead %}
    {{ block.super }}
    <style>
        .addlink {
            background: linear-gradient(135deg, #6496ff, #00d4ff) !important;
            color: white !important;
            border-radius: 5px !important;
            padding: 8px 15px !important;
            text-decoration: none !important;
            font-weight: 500 !important;
            transition: all 0.3s ease !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 5px !important;
        }
        
        .addlink:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 5px 15px rgba(100, 150, 255, 0.3) !important;
            color: white !important;
            text-decoration: none !important;
        }
        
        .addlink i {
            font-size: 14px !important;
        }
    </style>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
{% endblock %}